﻿using System.Windows.Forms;

namespace WindowsApplication2._18_设计模式.单例模式._1
{
    public partial class Form2 : Form
    {
        private static Form2 instance = new Form2();



        private Form2()
        {
            InitializeComponent();
        }

        public static Form2 get_instance()
        {
            if (instance == null || instance.IsDisposed)
            {
                instance = new Form2();
            }
            return instance;




        }

        private void Form2_Load(object sender, System.EventArgs e)
        {

        }
    }
}